package com.woniuxy.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("owner")
public class Owner {
      @TableId("id")
      Integer id;
      String username;
      String tel;
      String sex;
      String identity;
      Integer houseId;
      String remarks;
      String password;
      Integer isdelete;
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      LocalDateTime deltime;
}
